﻿namespace Douyu.SDK.Messages
{
    /// <summary>
    /// 入组消息
    /// </summary>
    public class JoinGroupMessage : BaseMessage
    {
        public JoinGroupMessage() : base(MessageType.joingroup, MsgType.ClientToServer)
        {
            //第三方平台, 使用固定值
            this.gid = -9999;
        }

        /// <summary>
        /// 房间号
        /// </summary>
        public int rid
        {
            get { return GetValue(nameof(rid), 0); }
            set { SetValue(nameof(rid), value); }
        }

        /// <summary>
        /// 分组号
        /// </summary>
        public int gid
        {
            get { return GetValue(nameof(gid), 0); }
            set { SetValue(nameof(gid), value); }
        }
    }
}
